package com.huel.bean;

public class Item {
    long id;
    String name;
    int price;
    int pic ;
    int count;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Item() {
    }

    public Item(long id, String name, int price, int pic) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.pic = pic;
    }

    public Item(long id, String name, int price, int pic, int count) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.pic = pic;
        this.count = count;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getPic() {
        return pic;
    }

    public void setPic(int pic) {
        this.pic = pic;
    }

    @Override
    public String toString() {
        return "Item{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", pic=" + pic +
                '}';
    }
}
